package com.example.service;

import com.example.entity.Organization;
import com.example.entity.Users;
import com.example.entity.Volunteer;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UsersService {
    List<Users> getAllUsers();
    Users getUsersById(Integer userid);
    boolean addUsers(Users users);
    boolean updateUsers(Users users);
    boolean deleteUsers(Integer userid);
    List<Users> searchUsers(@Param("usernumber") String usernumber, @Param("usertype") String usertype);
     Users getUsersByUserNumberAndPassword(String usernumber, String password);
      boolean registerUser(Users user);
        boolean registerVolunteer(Volunteer volunteer);
    boolean registerOrganization(Organization organization);

    
    // 获取志愿者信息
 // 新增方法声明
    Volunteer findVolunteerInfoByUserId(Integer userid);

    Volunteer getVolunteerInfoByUserId(Integer userid);
    Organizations getOrganizationInfoByUserId(int userid);
}
}


